package com.gupaoedu.pattern.decorator;

/**
 * 2019/9/28
 * created by chenpp
 */
public class MilkFoamDecorator extends DefaultMilkTea {
    private MilkTea milkTea;

    public MilkFoamDecorator(MilkTea milkTea){
        this.milkTea = milkTea;
    }

    public String getRemark() {
        return milkTea.getRemark() + "加奶盖 ";
    }

    public int getPrice() {
        return milkTea.getPrice() + 4;
    }
}
